<?php
Yii::app ()->clientScript->registerCoreScript ( 'jquery' );
Yii::app ()->clientScript->registerScriptFile ( "/js/admin/main.js" );
Yii::app ()->clientScript->registerScriptFile ( "/js/admin/new.js" );
Yii::app ()->clientScript->registerScriptFile ( "/js/admin/jquery.cookie.js" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<link rel="shortcut icon" href="/css/admin/images/favicon.ico" type="image/x-icon">
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/style-admin.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/style-new.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/style-new.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>

<!-- Add jQuery library -->
<!-- <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> -->

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<!-- Add fancyBox -->
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/fancyBox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="all"/>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

<!-- Optionally add helpers - button, thumbnail and/or media -->
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>

<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>

</head>

<body>
	<div class="container" id="page">
		<div id="mainmenu" class="fixed">
			<?php $this->widget('zii.widgets.CMenu',array(
				'items'=>array(
					array('label'=>Yii::app()->name, 'url'=>array('site/index'), 'items'=>array(
						array('label'=>'Перейти на сайт', 'url'=>Yii::app()->homeUrl, 'linkOptions'=>array('target'=>'blanck')),
						// array('label'=>'Адмінка', 'url'=>array('site/index')),
					)),
					array('label'=>'Настройки', 'url'=>array('site/config')),
					array('label'=>'Очистить кэш', 'url'=>array('site/clearCache')),
					array('label'=>'Выход ('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest)
				),
			)); ?>
		</div><!-- mainmenu -->

		<?php /*$this->widget('zii.widgets.CBreadcrumbs', array(
			'homeLink'=> CHtml::openTag('li', array('class'=>'first')) . CHtml::link('Главная', '/admin') . CHtml::closeTag('li')."\n",
			'links'=>$this->breadcrumbs,
		)); */?><!-- breadcrumbs -->

		<?php echo $content; ?>
		<div id="clearfooter"></div>
	</div>
	<div id="footer">
		<span>Copyright &copy; <?php echo date('Y'); ?> | <a href="http://egidasoft.com"><?php echo Yii::app()->name;?></a></span><br/>
		<span>Все права защищены.</span>
		
	</div>
	<div id="scroller" class="b-top" style="display: none;">
		<span class="b-top-but">наверх</span>
	</div>
</body>
</html>